﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using LastoRevival.Service.Contracts.Models;

namespace LastoRevival.Service.Implementations.Data.Sql.Converters
{
	public class EditUserModelCreator
	{

		public EditProfileModel Create(DataRow userRow)
		{
			var model = new EditProfileModel
			{
				Username = string.Format("{0}", userRow["username"]),
				Email = string.Format("{0}", userRow["useremail"]),
				UserID = (int)userRow["userid"],
				Signature = string.Format("{0}", userRow["signature"]),
			};


			return model;
		}

	}
}
